﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities.Auditing;

namespace MyCompanyName.AbpZeroTemplate.Entities
{
    public class Image:FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 原图
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 小图
        /// </summary>
        public string Small { get; set; }

        /// <summary>
        /// 大图
        /// </summary>
        public string Big { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        public Guid ProductId { get; set; }

        [ForeignKey("ProductId")]
        public virtual Product Product { get; set; }
    }
}
